package com.xiaoshuidi.cloud.module.rooms.service;


import com.xiaoshuidi.cloud.framework.common.pojo.PageResult;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.reservation.vo.RoomReceiptRespVO;
import com.xiaoshuidi.cloud.module.rooms.controller.app.reserve.vo.ReceiptPageRespVO;
import com.xiaoshuidi.cloud.module.rooms.pojo.RoomReceipt;

import java.util.List;

public interface RoomReceiptService {
    /**
     * 作废收据
     * @param orderId 账单id
     */
    void cancel(Long orderId);

    /**
     * 返回发票下载数据
     * @param orderId 账单id
     * @return
     */
    RoomReceiptRespVO down(Long orderId);

    /**
     * 根据收据id查询收据
     * @param id 收据id
     * @return
     */
    RoomReceiptRespVO get(Long id);

    PageResult<ReceiptPageRespVO> page(Integer pageNum, Integer pageSize);

    String downPdf(Long id);

    /**
     * @description: 生成预定单收据
     * @param roomReceipt
     * @return: java.lang.String
     */
    String generateReceiptPdf(RoomReceipt roomReceipt);
}
